#include "Heap.h"

int main()
{
	HP hp;
	HPInit(&hp);
	int a[] = { 65,100,70,32,50,60 };
	for (int i = 0; i < sizeof(a) / sizeof(a[0]); i++)
	{
		HPPush(&hp, a[i]);
	}
	//HPPrint(&hp);
	printf("size = %d\n",HPSize(&hp));

	int k = 3;
	while (!HPEmpty(&hp)&& k--)
	{
		printf("%d ", HPTop(&hp));
		HPPop(&hp);
	}

	printf("\nsize = %d\n", HPSize(&hp));
	HPDestory(&hp);
	return 0;
}